// DrawRectCtrler.h: interface for the CDrawRectCtrler class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DRAWRECTCTRLER_H__9170C79E_E261_44C1_B074_90AB1B3CC064__INCLUDED_)
#define AFX_DRAWRECTCTRLER_H__9170C79E_E261_44C1_B074_90AB1B3CC064__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DrawObjectCtrler.h"

// used to draw rectangle (control class)
class CDrawRectCtrler : public CDrawObjectCtrler  
{
public:
	CDrawRectCtrler(COLORREF color = UD_RED, int width = 1, 
		long style = PS_SOLID, BOOL fill = false);
	virtual ~CDrawRectCtrler();

	void MoveAt (CDC* pDC, long x, long y);
	void StartPoint (long x, long y);
	void DrawObject (CDC* pDC);
private:
	long m_lStartx, m_lStarty;		// start point
	long m_lEndx, m_lEndy;			// end point
};

#endif // !defined(AFX_DRAWRECTCTRLER_H__9170C79E_E261_44C1_B074_90AB1B3CC064__INCLUDED_)
